package com.dyz.mapper;

import com.dyz.domain.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 系统菜单 Mapper 接口
 * </p>
 *
 * @author dyz
 * @since 2025-04-19
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {
    /**
     * 根据用户ID查询菜单
     * @param userId
     * @return
     */
    List<SysMenu> selectMenuByUserId(Long userId);
}
